package cn.tedu.oop;

public class TestReturn {
    public static void main(String[] args) {
        int i = 1;
        method1();
        while(i == 1){
            return; //跳出整个main方法
        };

        method2();

    }

    private static void method2() {
        System.out.println("method2()~~");
    }

    private static void method1() {
        System.out.println("test the usage of return on method1()~~");
        return;
    }

}
